package com.yinuo.starter.util;

public class Str {

    public static String checkAddr(String[] v){
        StringBuffer sb = new StringBuffer();
        for(String s : v){
            sb.append(s).append(";");
        }
        if(sb.length() > 0){
            return sb.substring(0, sb.length() - 1);
        }
        return sb.toString();
    }

    public static String isHas(String v){
        if(v == null || v.length() == 0){
            return "";
        }
        return v;
    }

    public static String UUID() {
        String id = java.util.UUID.randomUUID().toString();
        id = id.replace("-", "");
        return id;
    }
}
